﻿using Coldairarrow.Entity.DTO;
using Coldairarrow.Entity.TD;
using Coldairarrow.Util;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.TD
{
    public partial interface ITD_OutStorageBusiness
    {
        Task<TD_OutStorage> GetTheDataAsync(string id);
        Task AddDataAsync(TD_OutStorage data);
        Task UpdateDataAsync(TD_OutStorage data);
        Task DeleteDataAsync(List<string> ids);

        Task<TD_OutStorageInfo> GetTD_OutStorageinfo(string ParentId);
		Task<PageResult<ProjectSummaryDTO>> GetProjectSummary(PageInput<ProjectSummaryContionDTO> input);
        Task<PageResultData<OutStoreDetail>> OutStoreDetail(PageInput<ProjectSummaryContionDTO> input);
        Task<TD_OutStorageViewDTO> GetTheDataAsyncs(string id);
        /// <summary>
        /// 大屏显示当月生产领料吨数
        /// </summary>
        /// <param name="Month">前第几月</param>
        /// <returns>当月生产领料吨数</returns>
        ScreenDisplayValueDTO GetMonthProductOut(int Month);
    }

    public class TD_OutStorageQM
    {
        public string Code { get; set; }
        public int? Status { get; set; }
        public string OutType { get; set; }
        public DateTime? OutStorTimeStart { get; set; }
        public DateTime? OutStorTimeEnd { get; set; }
        /// <summary>
        /// 物料
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 货区
        /// </summary>
        public string LocalName { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string ConfirmUserIdName { get; set; }
    }
    public class TD_OutStoragePageInput : PageInput<TD_OutStorageQM>
    {
        public string StorId { get; set; }
    }
}